package com.packet.service.impl;

import com.packet.mybatis.mapper.StaffCustomsMapper;
import com.packet.pojo.Customs;
import com.packet.service.StaffCustomsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName:StaffCustomsServiceImpl
 * @Author: mu
 * @Date:2023-12-06 19:47
 * @Describe:
 */
@Service
public class StaffCustomsServiceImpl implements StaffCustomsService {

    @Autowired
    private StaffCustomsMapper staffCustomsMapper;


    @Override
    public List<Customs> getCustoms( Integer bid) {
        return staffCustomsMapper.getCustoms(bid);
    }
    @Override
    public List<Customs> getCustomsThen(Integer bid){return  staffCustomsMapper.getCustomsThen(bid);}
    @Override
    public void deleteCustoms(Integer bid) {staffCustomsMapper.deleteCustoms(bid);}
    @Override
    public void addCustoms(Customs customs){staffCustomsMapper.addCustoms(customs);}
    @Override
    public Integer getNewCustomsCid(Integer bid) {return staffCustomsMapper.getNewCustomsId(bid);}

    @Override
    public List<Customs> getAllCustoms(Integer bid) {
        return staffCustomsMapper.getAllCustoms(bid);
    }

}
